package com.study02;

public class TestDemo {
    public static void main(String[] args) {
        NoteBook nb = new NoteBook();
        Mouse m = new Mouse();
        KeyBoard kb = new KeyBoard();
        nb.run();
        nb.useUSB(m,"有电");
        nb.useUSB(kb, "无电");
        nb.shutDown();
    }
}
